package com.fingard.dsp.bank.reqrespobj.recrefund;

import com.fingard.dsp.bank.reqrespobj.RetAtsBase;
import com.fingard.text.StringHelper;

import java.util.HashMap;

/**
 * 实时类代扣退款查询响应对象
 * 
 * @author Cruise
 * @date 2018/11/02
 */
public class RetAtsQryRecRefund extends RetAtsBase {
	/** 响应码 */
	public String respCode;

	/** 响应信息 */
	public String respInfo;

	/** 退款流水号 */
	public String refundNo;

	/** 渠道方退款流水号 */
	public String oppRefundNo;

	/** 原商户订单号 */
	public String oriRdSeq;

	/** 原渠道方订单号 */
	public String oriOppOrderNo;

	/** 退款状态 (2:退款成功；3:退款失败；4:退款中；10:退款关闭;) */
	public String refundState;

	/** 原始信息码 */
	public String originalCode;

	/** 原始信息 */
	public String originalInfo;

	/** 映射后统一信息码 */
	public String unifiedCode;

	/** 退款渠道 */
	public String refundChannel;

	/** 退款入账账户 */
	public String refundRecAccount;

	/** 退款成功时间 (格式:yyyy-MM-dd HH:mm:ss) */
	public String refundSuccessDate;

	/** 用户在第三方APP中ID号 */
	public String refundRecUserId;

	/** 商户号 */
	public String merchantId;

	/** 退款单号 */
	public String refundId;

	/** 订单类型  ordertype*/
	public String orderType;

	public HashMap<String, String> getRetAtsHashMap() {
		HashMap<String, String> retHash = new HashMap<String, String>();

		retHash.put("RespCode", respCode);
		retHash.put("RespInfo", respInfo);
		if (StringHelper.hasAnyChar(refundNo)) {
			retHash.put("RefundNo", refundNo);
		}
		if (StringHelper.hasAnyChar(oppRefundNo)) {
			retHash.put("OppRefundNo", oppRefundNo);
		}
		if (StringHelper.hasAnyChar(oriRdSeq)) {
			retHash.put("OriRdSeq", oriRdSeq);
		}
		if (StringHelper.hasAnyChar(oriOppOrderNo)) {
			retHash.put("OriOppOrderNo", oriOppOrderNo);
		}
		if (StringHelper.hasAnyChar(refundState)) {
			retHash.put("RefundState", refundState);
		}
		if (StringHelper.hasAnyChar(originalCode)) {
			retHash.put("OriginalCode", originalCode);
		}
		if (StringHelper.hasAnyChar(originalInfo)) {
			retHash.put("OriginalInfo", originalInfo);
		}
		if (StringHelper.hasAnyChar(unifiedCode)) {
			retHash.put("UnifiedCode", unifiedCode);
		}
		if (StringHelper.hasAnyChar(refundChannel)) {
			retHash.put("refundChannel", refundChannel);
		}
		if (StringHelper.hasAnyChar(refundRecAccount)) {
			retHash.put("RefundRecAccount", refundRecAccount);
		}
		if (StringHelper.hasAnyChar(refundSuccessDate)) {
			retHash.put("RefundSuccessDate", refundSuccessDate);
		}
		if (StringHelper.hasAnyChar(refundRecUserId)) {
			retHash.put("RefundRecUserId", refundRecUserId);
		}
		if (StringHelper.hasAnyChar(merchantId)) {
			retHash.put("MerchantId", merchantId);
		}
		if (StringHelper.hasAnyChar(refundId)) {
			retHash.put("RefundId", refundId);
		}
		if (StringHelper.hasAnyChar(orderType)) {
			retHash.put("OrderType", orderType);
		}
		return retHash;
	}
}
